<template>
   <div id='box'></div>
</template>

<script>
   export default {
     name:'',
     data () {
       return {};
     },
    mounted(){
      // 创建地图实例
      var map = new BMapGL.Map("box");
      // 设置中心点坐标
      var point = new BMapGL.Point(116.404, 39.915);
      // 地图初始化
      map.centerAndZoom(point, 15); 
      // 滚动可放大缩小
      map.enableScrollWheelZoom(true);
    }
   }
</script>
<style scoped lang='scss'>
  #box{
    width: 500px;
    height: 500px;
    overflow: hidden;
    margin-top: 20px;
  }

</style>